﻿<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>会员邀请</title>
<meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<link href="/carworld_weixin/css/bootstrap.min.css" rel="stylesheet">
<link href="/carworld_weixin/css/received_card_style.css" rel="stylesheet" type="text/css">
<script src="/carworld_weixin/js/jquery-3.3.1.min.js"></script>
<script src="/carworld_weixin/js/bootstrap.min.js"></script>
<script type="text/javascript">
	$(function() {
		$(".aui-head-title").click(function() {
			$(this).toggleClass("aui-current-up").siblings(".aui-head-title").removeClass("aui-current-up");
			$(this).toggleClass("aui-current-tx").siblings(".aui-head-title").removeClass("aui-current-tx");
			$(this).next(".aui-box-content").slideToggle(100).siblings(".aui-box-content").slideUp(400);
		})
	})
</script>

<style type="text/css">
.tb960x90 {
	display: none !important;
	display: none
}
</style>
</head>
<body>

	<section class="aui-flexView">
		<header class="aui-navBar aui-navBar-fixed">
			<a href="javascript:history.back(-1)" class="aui-navBar-item">
				<i class="icon icon-return"></i>
			</a>
			<div class="aui-center">
				<span class="aui-center-title" id="office_name"></span>
			</div>
		</header>
		<section class="aui-scrollView">
			<div class="aui-show-content">
				<div>
					<img src="/carworld_weixin/images/received_card.jpg" alt="" style="width: 100%; height: 180px;">
				</div>
				<div class="aui-show-user">
					<img src="" alt="" id="sharer_photo">
				</div>
			</div>
			<div class="aui-show-head">
				<div>
					来自您的好友
					<span id="sharer_name"></span>
					的会员邀请
				</div>
			</div>
			<div class="aui-show-button b-line">
				<a href="javascript:;" onclick="isShowQr()">同意邀请</a>
			</div>
			<div class="aui-flex b-line">
				<div class="aui-show-doctor">
					<i class="icon icon-doctor"></i>
					<span style="font-size: 16px;">茉德MOOD精品火锅 PREMIUM HOTPOT</span>
				</div>
			</div>
			<div class="aui-show-list b-line">
				<div class="aui-flex">
					<span style="font-size: 16px;">坚持原味新鲜，精心挑选食材</span>
				</div>

				<div class="aui-head-title aui-current-up aui-current-tx"></div>
				<div class="aui-box-content" style="display: block;">
					<div class="aui-flex">
						<div class="aui-show-doctor">
							<i class="icon icon-vip"></i>
						</div>
						<div class="aui-flex-box">
							<span>主打粤式打边炉生猛海鲜;</span>
						</div>
					</div>
					<div class="aui-flex">
						<div class="aui-show-doctor">
							<i class="icon icon-vip"></i>
						</div>
						<div class="aui-flex-box">
							<span>超多品种，满足多种口味;</span>
						</div>
					</div>
					<div class="aui-flex">
						<div class="aui-show-doctor">
							<i class="icon icon-vip"></i>
						</div>
						<div class="aui-flex-box">
							<span>食材现选现捞，可靠放心!</span>
						</div>
					</div>
				</div>
			</div>
			<div class="aui-show-follow">
				<a href="javascript:;" class="">
					<b>25</b>
					个朋友成为了会员
				</a>
				<a href="javascript:;" class="">
					<b>1256</b>
					位会员给予好评
				</a>
			</div>
			<div class="divHeight"></div>
			<div class="aui-flex">
				<div class="aui-show-doctor">
					<i class="icon icon-vip"></i>
					地址
				</div>
				<div class="aui-flex-box"></div>
				<div class="aui-show-arrow" id="office_address"></div>
			</div>
			<div class="divHeight"></div>
		</section>
	</section>



	

	<script>
	    var json = '${jsonObject}';
		var data = JSON.parse(json);
		$('#sharer_photo').attr('src', data.sharerPhoto);
		$('#office_name').html(data.officeName);
		$('#sharer_name').html(data.sharerName);
		$('#office_address').html(data.officeAddress);

		function isShowQr() {
		    if(data.message!=null && data.message!=""){
                alert(data.message);
                window.location.href = '/carworld_weixin/carworld';
			}else{
                window.location.href = '/carworld_weixin/carworld';
			}

		}
	</script>


</body>
</html>

